Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shutdown bug due to non-daemon thread in driver #175

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

kaituo
Copy link
Collaborator

@kaituo kaituo commented Nov 22, 2023

Description

Resolve an issue where a non-daemon thread, potentially created by a bug in dependencies, prevents the driver from shutting down properly. The fix ensures the JVM exits gracefully, avoiding resource leaks and preventing hanging EMR-s jobs.

Tests:

  • Reproduced the bug to confirm the issue.
  • Applied the fix and verified that the driver now shuts down as expected.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Resolve an issue where a non-daemon thread, potentially created by a bug in dependencies, prevents the driver from shutting down properly. The fix ensures the JVM exits gracefully, avoiding resource leaks and preventing hanging EMR-s jobs.

Tests:
- Reproduced the bug to confirm the issue.
- Applied the fix and verified that the driver now shuts down as expected.

Signed-off-by: Kaituo Li <[email protected]>
@penghuo penghuo merged commit d3dfca1 into opensearch-project:main Nov 22, 2023
4 checks passed
kaituo added a commit to kaituo/opensearch-spark that referenced this pull request Mar 20, 2024
Similar to opensearch-project#175, this PR adds shutdown logic in FlintJob.

Tests:
* Verified in IT if terminateJVM is enabled, JVM would shut down.

Signed-off-by: Kaituo Li <[email protected]>
kaituo added a commit that referenced this pull request Mar 21, 2024
Similar to #175, this PR adds shutdown logic in FlintJob.

Tests:
* Verified in IT if terminateJVM is enabled, JVM would shut down.

Signed-off-by: Kaituo Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants